package Entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.*;

@Entity
@Table (name = "Tarea")
public class TareaEntity implements Serializable{

	private static final long serialVersionUID = 1L;
	
	@Id
	@Column (name = "idTarea")
	private int id;
	
	@Column (name = "cantidad")
	private int cantidad;
	
	@Column (name = "realizado")
	private boolean realizado;
	
	@Column (name = "fecha")
	private Date fecha;
	
	@ManyToOne
	@JoinColumn (name = "idProducto")
	private ProductoEntity producto;
	
	@ManyToOne
	@JoinColumn (name = "idSucursal")
	private SucursalEntity sucursal;
}
